package com.yun.zf.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.zf.app.mapper.ScUserInfoMapper;
import com.yun.zf.common.material.domain.ScUserInfo;
import com.yun.zf.app.service.ScUserInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author cj
 * @since 2020-09-23
 */
@Service
public class ScUserInfoServiceImpl extends ServiceImpl<ScUserInfoMapper, ScUserInfo> implements ScUserInfoService {

    @Override
    public ScUserInfo getUserDetail(Long userId) {
        QueryWrapper<ScUserInfo> userInfoQueryWrapper = new QueryWrapper<>();
        userInfoQueryWrapper.lambda().eq(ScUserInfo::getUserId,userId);
      return   baseMapper.selectOne(userInfoQueryWrapper);

    }
}
